package edu.tongji.libraryapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class LoginActivity extends Activity {

	@Override
	protected void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);

		bindLoginFunction();
	}

	private void bindLoginFunction() {
		TextView loginText = (TextView) findViewById(R.id.loginText);
		loginText.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent searchIntent = new Intent();
				searchIntent.setClass(LoginActivity.this, MainActivity.class);
				startActivity(searchIntent);
				overridePendingTransition(R.anim.slide_in_left,
						R.anim.slide_out_left);
			}
		});
	}
}
